4ddf6456d84f34f2b056cc8a87f2529801354876,platform/lang-impl/src/com/intellij/codeInsight/template/impl/SurroundWithTemplateHandler.java,SurroundWithTemplateHandler,getApplicableTemplates,#Editor#PsiFile#boolean#,105

Before Change


      if (!template.isDeactivated() &&
          template.isSelectionTemplate() == selection &&
          (TemplateManagerImpl.isApplicable(file, offset, template) ||
           (selection && TemplateManagerImpl.isApplicable(file, startOffset, template)))) {
        list.add(template);
      }
    }

After Change


    for (TemplateImpl template : TemplateSettings.getInstance().getTemplates()) {
      if (!template.isDeactivated() &&
          template.isSelectionTemplate() == selection &&
          TemplateManagerImpl.isApplicable(file, startOffset, template)) {
        list.add(template);
      }
    }